package com.ryskoo.catering.employeetablerel.service;

import com.ryskoo.catering.employeetablerel.domain.EmployeeTableRelPO;
import com.ryskoo.framework.core.service.IBasicService;

import java.util.List;

public interface IEmployeeTableRelService extends IBasicService<EmployeeTableRelPO> {

    /**
     * 根据员工和桌uuid查询关联关系
     * @param employeeUuid
     * @param tableUuid
     * @return
     */
    public EmployeeTableRelPO getByEmployeeAndTable(String employeeUuid, String tableUuid);

    /**
     * 改变员工桌台关联状态
     * @param employeeUuid
     * @param tableUuid
     * @param state
     */
    public void updateState(String employeeUuid,String tableUuid,boolean state);

    /**
     * 根据台桌uuid查询关联的服务员uuid集合
     * @param tableUuid
     * @return
     */
    List<String> getEmpUuids(String tableUuid);
}
